import request from '@/utils/request';

// 查询调差模版id
export async function getList(params) {
  return request(`/osApi/insBillApi/getBillList`, {
    method: 'POST',
    body: params,
  });
}

export async function queryDictItemsByCodes(params) {
  return request(`/osApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: params,
  });
}

export async function payApply(params) {
  return request(`/osApi/insBillApi/payApply`, {
    method: 'POST',
    body: params,
  });
}

export async function cancleApply(params) {
  return request(`/osApi/insBillApi/cancelPayApply`, {
    method: 'POST',
    body: params,
  });
}

export async function handleBillOk(params) {
  return request(`/osApi/insBillApi/createBill`, {
    method: 'POST',
    body: params,
  });
}

export async function updateBill(params) {
  return request(`/osApi/insBillApi/updateBill`, {
    method: 'POST',
    body: params,
  });
}

export async function getBillContent(params) {
  return request(`/osApi/insBillApi/getBillContent`, {
    method: 'POST',
    body: params,
  });
}

export async function getDetailList(params) {
  return request(`/osApi/insBillApi/getBillContentList`, {
    method: 'POST',
    body: params,
  });
}

export async function getProgress(params) {
  return request(`/osApi/insBillApi/getBillProgress`, {
    method: 'POST',
    body: params,
  });
}

export async function markPaid(params) {
  return request(`/osApi/insBillApi/execPayed`, {
    method: 'POST',
    body: params,
  });
}

export async function checkHasTask(params) {
  return request(`/osApi/insBillApi/getBillBatch`, {
    method: 'POST',
    body: params,
  });
}

export async function checkRtnState(params) {
  return request(`/osApi/insBillApi/checkRtnState`, {
    method: 'POST',
    body: params,
  });
}

export async function getInsNoBillEmpDet(params) {
  return request(`/osApi/insBillApi/getNoBillEmpDet`, {
    method: 'POST',
    body: params,
  });
}
export async function getAccuNoBillEmpDet(params) {
  return request(`/osApi/accuBillApi/getNoBillEmpDet`, {
    method: 'POST',
    body: params,
  });
}
